package com.atguigu.gmall.order.mapper;

import com.atguigu.gmall.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
    /**
     * 关闭订单
     * @param id      订单id
     * @param status 订单状态
     */
    void updateOrderStatus(@Param("id") Long id, @Param("orderStatus") String status);

    void updateOrderStatusPayed(@Param("outTradeNo") String outTradeNo, @Param("name") String name);
}
